
<table width="100%">
	<tr>
		<td width="50%"></td>
		<td width="15%"><?php echo CHtml::image(Yii::app()->request->baseUrl.'/images/logo.png'); ?></td>
		<td width="35%"><strong>PT. Anugerah Bersama Berkah Abadi</strong><br />
		Sequis Plaza, 21st Floor, Jl. Jend.Sudirman <br />
		Kav.25, Jakarta Selatan, 12920
		</td>
	</tr>
	<tr>
		<td></td>
		<td>RECEIPT NO. :</td>
		<td><?php echo $model->no_receipt; ?></td>
	</tr>
	<tr>
		<td>Received From : <?php echo $model->client_name; ?><br />
			Date 		: <?php echo date('m-d-Y', strtotime($model->tgl_transaksi)); ?><br />
			<?=MstCoa::model()->FindByPk($model->coa_debet_id)->name;?>
		</td>
		<td></td>
		<td></td>
	</tr>
</table>

<hr />
<table border="1">
	<tr>
		<th style="width:20px;">No</th>
		<th style="width:160px;">Account Code</th>
		<th style="width:160px;">DN/CN No.</th>
		<th style="width:100px;">Amount</th>
		<th style="width:100px;">Remarks</th>
	</tr>
	<?php $i = 1;
	foreach($datas as $data):
	$total += $data['nominal'];
	?>
	<tr>
		<td style="width:20px;"><?=$i?></td>
		<td style="width:160px;"><?=$data['name']?></td>
		<td style="width:160px;"><?=$data['nota_note']?></td>
		<td style="width:100px;" align="right"><?=number_format($data['nominal'],2)?></td>
		<td style="width:100px;"><?=$data['keterangan']?></td>
	</tr>
	<?php $i++;endforeach; ?>
	<tr>
		<td colspan="3" align="right"> <b>Total</b> </td>
		<td colspan="2" align="right"><b><?=number_format($total,2)?></b></td>
		
	</tr>
</table>

<br/>
<br/>
<br/>
<table border="0" width="100%">
	<tr>
		<th style="width:160px;" align="center">&nbsp;</th>
		<th style="width:160px;" align="center">&nbsp;</th>
		<th style="width:160px;" align="center">&nbsp;</th>
		<th style="width:100px;" align="center">&nbsp;</th>
		<th style="width:100px;" align="center">&nbsp;</th>
	</tr>
	<tr>
		<th style="width:160px;" align="center">Signature</th>
		<th style="width:160px;" align="center">&nbsp;</th>
		<th style="width:160px;" align="center">&nbsp;</th>
		<th style="width:100px;" align="center">&nbsp;</th>
		<th style="width:100px;" align="center">&nbsp;</th>
	</tr>
</table>
<br/>
<table border="1"  style="float:right;width:30%">
	<tr>
		<td style="height:100px;" align="center">&nbsp;</td>
	</tr>
</table>